//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<IVertexIndex.h>
///	@path	~/src/graphics/
///	@date	2008/12/28
///	@desc	.

#pragma once

#include "xeres.h"

#include "graphics/DxHelpers.h"
#include "graphics/IDevice.h"
#include "graphics/IVertex.h"
#include "graphics/RenderContext.h"

namespace xeres {
	
	/*! 
		\class	IVertexIndex
		\brief
	*/
	class IVertexIndex : public IVertex
	{
	public:
		
		/// \ctor
		IVertexIndex( void );

		/// \dtor
		virtual ~IVertexIndex( void );

		DECL_IOBJECT_INTERFACE( IVertexIndex , IVertex );

	public:

		/// \name Index Buffer Interface
		//@{

		/*! 
			\brief		Get buffer format.
		*/
		virtual DXFormat GetFormat( void ) = 0;

		/*! 
			\brief		Apply index.
		*/
		virtual void ApplyIndex( RenderContext& rc ) = 0;

		//@}
	};

} // namespace xeres
